From: Micah Abbott Date: Thu, 23 Apr 2015 18:11:33 +0000 (-0400) Subject: reset: update help output X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~779 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d801d347f727afc856538f87517a564f963e8f90;p=ostree.git reset: update help output The inline help for 'ostree reset' now correctly shows that it requires a REF and a COMMIT as arguments. --- diff --git a/src/ostree/ot-builtin-reset.c b/src/ostree/ot-builtin-reset.c index 71655438..c581c92a 100644 --- a/src/ostree/ot-builtin-reset.c +++ b/src/ostree/ot-builtin-reset.c @@ -63,7 +63,7 @@ ostree_builtin_reset (int argc, gs_free gchar *current = NULL; gs_free gchar *checksum = NULL; - context = g_option_context_new ("[ARG] - Reset a ref to a previous commit"); + context = g_option_context_new ("REF COMMIT - Reset a REF to a previous COMMIT"); if (!ostree_option_context_parse (context, options, &argc, &argv, OSTREE_BUILTIN_FLAG_NONE, &repo, cancellable, error)) goto out; @@ -73,7 +73,7 @@ ostree_builtin_reset (int argc, if (argc <= 2) { - ot_util_usage_error (context, "A ref and commit argument is required", error); + ot_util_usage_error (context, "A REF and COMMIT argument is required", error); goto out; } ref = argv[1];